    --[[<object id="backliftup" interior="0" alpha="255" doublesided="false" model="3115" { 6140.40967,407.91769,12.74991,0,0,270 }
    <object id="sideliftup" interior="0" alpha="255" doublesided="false" model="3114" { 6125.2583,450.17947,12.47685,0,0,90 }
	<object id="sideliftdown" interior="0" alpha="255" doublesided="false" model="3114" { 6125.25781,450.17871,5.43805,0,0,90 }
    <object id="backliftdown" interior="0" alpha="255" doublesided="false" model="3115" { 6140.40918,407.91953,5.70911,0,0,270 }
	<marker id="sidelift" type="cylinder" color="#6711E935" size="0.5" interior="0" dimension="0" alpha="255" { 6128.80176,439.38474,13.0873,0,0,0 }
    <marker id="sidelift1" type="cylinder" color="#6711E935" size="0.5" interior="0" dimension="0" alpha="255" { 6126.35303,440.05832,13.0873,0,0,0 }
    <marker id="backlift" type="cylinder" color="#6711E935" size="0.5" interior="0" dimension="0" alpha="255" { 6130.78223,418.80832,13.0873,0,0,0 }
    <marker id="backlift1" type="cylinder" color="#6711E935" size="0.5" interior="0" dimension="0" alpha="255" { 6131.46143,413.97153,13.0873,0,0,0 }
	<marker id="backlift-1" type="cylinder" color="#6711E935" size="0.5" interior="0" dimension="0" alpha="255" { 6131.46143,413.97153,6.02689,0,0,0 }
    <marker id="sidelift-1" type="cylinder" color="#6711E935" size="0.5" interior="0" dimension="0" alpha="255" { 6126.35303,440.05832,6.02689,0,0,0 }]]
	
colshapesTable = { { 6130.63135, 418.30118, 11.86052, 0, 270, 0 }, { 6128.22998, 439.52042, 11.86052, 0, 270, 270 } }
for k, v in ipairs ( colshapesTable ) do
	local x, y, z, rx, ry, rz = unpack ( v )
	local obj = createObject ( 2960, x, y, z, rx, ry, rz )
	setElementAlpha ( obj, 0 )
end

liftTime = 10000
lifts = { 
	b = createObject ( 3115, 6140.40967, 407.91769, 12.74991, 0, 0, 270 ), 
	s = createObject ( 3114, 6125.2583, 450.17947, 12.47685, 0, 0, 90 ) 
}
states = { 
	b = 1, 
	s = 1 
}
positions = { 
	b = { 
		[ -1 ] = { 6140.40918, 407.91953, 5.70911 }, 
		[ 1 ] = { 6140.40967, 407.91769, 12.74991 } 		
	}, 
	s = { 
		[ -1 ] = { 6125.25781, 450.17871, 5.43805 },
		[ 1 ] = { 6125.2583, 450.17947, 12.47685 }		 
	} 
}
function lifting ( lift, state )
	if state ~= states [ lift ] and states [ lift ] ~= 0 then
		local x, y, z = unpack ( positions [ lift ] [ state ] )
		states [ lift ] = 0
		for i = -1, 1 do
			setElementAlpha ( markers [ lift ] [ i ], 0 )
		end
		moveObject ( lifts [ lift ], liftTime, x, y, z, 0, 0, 0, "InOutQuad" )
		setTimer (
			function ()
				states [ lift ] = state
				for i = -1, 1 do
					setElementAlpha ( markers [ lift ] [ i ], 50 )
				end
			end
		, liftTime, 1 )
	end
end

markers = { 
	b = { 
		[ -1 ] = { 6131.46143, 413.97153, 6.02689 },
		[ 0 ] = { 6130.78223, 418.80832, 13.0873 },
		[ 1 ] = { 6131.46143, 413.97153, 13.0873 }
	},
	s = { 
		[ -1 ] = { 6126.35303, 440.05832, 6.02689 },
		[ 0 ] = { 6128.80176, 439.38474, 13.0873 },
		[ 1 ] = { 6126.35303, 440.05832, 13.0873 }
	}
}
for k, v in pairs ( markers ) do
	for k2, v2 in ipairs ( v ) do
		local x, y, z = unpack ( v2 )
		local marker = createMarker ( x, y, z + 0.2, "cylinder", 1, 100, 255, 255, 50 )
		setElementData ( marker, "lotnikValue", v2 )
		setElementData ( marker, "lotnikLift", k )
		v [ k2 ] = marker
	end
end
addEventHandler ( "onMarkerHit", root,
	function ( player, bool )
		if getElementData ( source, "lotnikLift" ) then
			outputChatBox("TO JE DEBUG SUKO")
			if bool and getElementType ( player ) == "player" and not getPedOccupiedVehicle ( player ) then
				outputChatBox ( "*** To use the platform, click #FFFFAAR #FFFF64. ***", player, 255, 255, 100, true )
				setElementData ( player, "lotnikClick", source )
			end
		end
	end
)
addEventHandler ( "onMarkerLeave", root,
	function ( player, bool )
		if getElementData ( source, "lotnikLift" ) then
			if bool and getElementType ( player ) == "player" then
				removeElementData ( player, "lotnikClick" )
			end
		end
	end
)
function preLift ( marker )
	local lift = getElementData ( marker, "lotnikLift" )
	if lift and getElementAlpha ( marker ) == 50 and states [ lift ] ~= 0 then
		lifting ( lift, -1 * states [ lift ] )
	end
end
function click ( player )
	local marker = getElementData ( player, "lotnikClick" )
	if marker then
		preLift ( marker )
	end
end

function lotnikBind ( player )
	local player = player or source
	bindKey ( player, "R", "down", click )
end
for k, v in ipairs ( getElementsByType ( "player" ) ) do
	lotnikBind ( v )
end
addEventHandler ( "onPlayerJoin", root, lotnikBind )